import React from "react";
import {Table} from "antd";
import {connect} from "react-redux";
import {AdminConsole_mapDispatchToProps, AdminConsole_mapStateToProps} from "../../index";
import './style.css';
import {articleListCol} from "@/js/columns";

const ArticleList = (props) => {
    const columns = articleListCol();
    return <>
        <Table
            style={{float: 'left', width: '100%'}}
            columns={columns}
            dataSource={props.ArticleList}
            size={'small'}
            scroll={{x: 1000}}
        />
    </>
}

export default connect(AdminConsole_mapStateToProps, AdminConsole_mapDispatchToProps)(ArticleList);
